package cn.fz.learn02.domain.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySources({
    @PropertySource(value = "classpath:diaomao.properties",encoding = "utf-8")
})
public class DiaomaoSourcesConf {
    @Value("${site.title}")
    private String title;

    @Value("${site.description}")
    private String description;

    @Value("${site.author}")
    private String author;

    @Value("${site.keywords}")
    private String keywords;

    @Value("${site.url}")
    private String url;
}
